<template>
  <div style="margin: 0px; padding: 0px;">
    <el-container style=" margin: 0px; padding: 0px; border: 1px solid #eee">
      <el-aside width="200px"  style="background-color: rgb(238, 241, 246)">
        <el-menu :default-openeds="[1]" router>
          <el-submenu index="1">
              <el-menu-item index="/about"><i class="el-icon-message"></i>选项1</el-menu-item>
              <el-menu-item index="/one"><i class="el-icon-menu"></i>选项2</el-menu-item>
              <el-menu-item index="/tow"><i class="el-icon-setting"></i>导航三</el-menu-item>
            </el-submenu>

        </el-menu>
      </el-aside>
      
      <el-container>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
    
  </div>
</template>

<style>
.el-header {
  background-color: #B3C0D1;
  color: #333;
  line-height: 60px;
}
.el-aside {
  color: #333;
}
</style>

<script>
export default {
  data() {
    const item = {
      date: '2016-05-02',
      name: '王小虎',
      address: '上海市普陀区金沙江路 1518 弄'
    };
    return {
      tableData: Array(20).fill(item)
    }
  }
};
</script>
